/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once


#include <UI/UI.h>



class C_节点库滚动视口 : public C_Widget {
public:
	C_节点库滚动视口(S_UI创建环境& ctx);
	~C_节点库滚动视口();

	ui_绘制模板_画预设图形	m_背景绘制;
	ui_绘制模板_行文本绘制	m_字符绘制;
	ui_绘制模板_图标		m_图标绘制;

	std::vector<S_列表填充数据>	m_项数据;
	vec2	m_项大小;
	vec2	m_滚动坐标;
	//S_View属性 m_扩展视口属性;
private:

};

void f_库视口_添加节点项(C_节点库滚动视口* view, std::wstring name, std::string ico, int32 ID = -1);
void f_库视口_加载模块(C_节点库滚动视口* view, std::string 目录路径);

E_事件是否传递 f_NodeView_载入节点(C_Widget* self, uint8 状态);

